#include "vlog/appender/filelogappender.h"
#include "vlog/appender/logappender.h"
#include "vlog/logger.h"
#include "vlog/util.h"
#include <iostream>

int main(void)
{
    std::shared_ptr<vlog::Logger> pLogger = std::make_shared<vlog::Logger>();
    vlog::LogAppender::ptr p(new vlog::StdOutLogAppender);
    vlog::event::LogEvent::ptr event(
        new vlog::event::LogEvent(__FILE__, vlog::LogLevel::Level::INFO, __LINE__, vlog::util::GetTimeMs(),
                                  vlog::util::GetTimeMs(), vlog::util::GetThreadID(), "thread_1", __func__, "test"));

    p->WriteLog(event);

    vlog::LogAppender::ptr filelog(new vlog::FileLogAppender("test.log"));
    filelog->WriteLog(event);

    return 0;
}
